#import "OasisBinaryCell.h"


@implementation OasisBinaryCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self hammerUpliftInitUIKitView];
	}
	return self;
}

- (void)setFlourish:(OasisBinaryModel *)flourish {
	_flourish = flourish;

	//: 配置cell的UI


}
- (UITextView *)crispHeatwaveTextView {
	if (!_crispHeatwaveTextView) {
	
        _crispHeatwaveTextView = [[UITextView alloc] init];
        _crispHeatwaveTextView.frame = CGRectMake(46, 28, 114, 158);
	}
	return _crispHeatwaveTextView;
}

//: radiantHummingbird 的点击事件
- (void)action_4 {}

//: 设置_universeZestfulTranquilImageView的圆角
- (void)oasis:(UIImageView *)abandon luminous:(CGFloat)nightfallZestfulLush {
	abandon.layer.cornerRadius = nightfallZestfulLush;
	abandon.layer.masksToBounds = YES;
}

- (UIImageView *)universeZestfulTranquilImageView {
	if (!_universeZestfulTranquilImageView) {
	
        _universeZestfulTranquilImageView = [UIImageView new];
        _universeZestfulTranquilImageView.contentMode = UIViewContentModeScaleAspectFill;
        _universeZestfulTranquilImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [self oasis:_universeZestfulTranquilImageView luminous:0];
        UIImage *wanderer = [UIImage imageNamed:@"images/image_5.png"];
        if (wanderer) {
	        _universeZestfulTranquilImageView.image = wanderer;
        }
	}
	return _universeZestfulTranquilImageView;
}

- (void)hammerUpliftInitUIKitView {

    //: 描述_0
    self.embarkHummingbirdDriftLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    self.embarkHummingbirdDriftLabel.size = CGSizeMake(175, 70);
    self.embarkHummingbirdDriftLabel.left = 48;
    self.embarkHummingbirdDriftLabel.top = 34;
    self.embarkHummingbirdDriftLabel.text = @"label_0";
    self.embarkHummingbirdDriftLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightBold];
    self.embarkHummingbirdDriftLabel.textColor = [UIColor colorWithRed:108/255.0 green:219/255.0 blue:126/255.0 alpha:0.7];
    self.embarkHummingbirdDriftLabel.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = self.embarkHummingbirdDriftLabel.numberOfLines = 1;
    NSInteger diligentCuriousYard = 1;
    if (diligentCuriousYard>89 && diligentCuriousYard < 2234) {
	    diligentCuriousYard = 54;
	    NSString *elevate = [NSString stringWithFormat:@"%ld", (long)diligentCuriousYard];
	    if (elevate.length>54 && [elevate isEqualToString:self.embarkHummingbirdDriftLabel.text]) {
		    diligentCuriousYard = elevate.integerValue * 5;
	    }
    }
    self.embarkHummingbirdDriftLabel.numberOfLines = diligentCuriousYard;
    [self.contentView addSubview:self.embarkHummingbirdDriftLabel];

	//: 描述_1
	[self.contentView addSubview:self.crispHeatwaveTextView];


    //: 描述_2
    self.graciousMingleHologramTextField = [UITextField new];
    [self.contentView addSubview:self.graciousMingleHologramTextField];
	[self.graciousMingleHologramTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(140);
		make.height.mas_equalTo(56);
	}];


    //: 描述_3
    UITextField *humbleGlisten = [[UITextField alloc] init];
    humbleGlisten.frame = CGRectMake(36, 13, 111, 113);
    self.hoverJoyousTextField = humbleGlisten;
    [self.contentView addSubview:humbleGlisten];


    //: 描述_4
    UIButton *radiantHummingbird = [[UIButton alloc] init];
    radiantHummingbird.size = CGSizeMake(181, 132);
    radiantHummingbird.left = 45;
    radiantHummingbird.top = 22;
    UIImage *yonder = [UIImage imageNamed:@"images/icon_4.png"];
    if (yonder) {
	    [radiantHummingbird setImage:yonder forState:UIControlStateNormal];
    }
    [radiantHummingbird setTitle:@"button_4" forState:UIControlStateNormal];
    [radiantHummingbird setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [radiantHummingbird setTitleColor:[UIColor colorWithRed:104/255.0 green:181/255.0 blue:41/255.0 alpha:0.8] forState:UIControlStateNormal];
    [radiantHummingbird setTitleColor:[UIColor colorWithRed:164/255.0 green:234/255.0 blue:85/255.0 alpha:0.9] forState:UIControlStateSelected];
    [radiantHummingbird addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    self.nirvanaJoyousWondermentButton = radiantHummingbird;
    [self.contentView addSubview:radiantHummingbird];

	//: 描述_5
	[self.contentView addSubview:self.universeZestfulTranquilImageView];
	[self.universeZestfulTranquilImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(155);
		make.height.mas_equalTo(68);
		make.bottom.equalTo(@(25));
	}];
}


@end
